package com.bjpowernode.pmes.service;

import java.util.List;

import com.bjpowernode.pmes.bean.AuthHistory;
import com.bjpowernode.pmes.bean.BugTicket;
import com.bjpowernode.pmes.bean.BugTickets;
import com.bjpowernode.pmes.bean.Page;
import com.bjpowernode.pmes.bean.User;

public interface BugTicketService {

	void insertBugTicket(BugTicket bt);

	Page<BugTicket> getAllBts(User loginUser, Integer pageno, Integer pagesize);

	void updateBt(BugTicket bt);

	void deleteBts(BugTickets bts);

	void updateBtStatus(BugTicket bt);

	BugTicket getBtByPI(String piid);

	void insertAuthHistory(AuthHistory ah);

	void updateBtAuthStatus(BugTicket bt);

	List<AuthHistory> getBtHistorys(BugTicket bt);

	Integer getBtHistoryCnt(BugTicket bt);

	Page<BugTicket> getPageByAuthed(User loginUser, Integer pageno,
			Integer pagesize);

	Page<BugTicket> getPageByFinished(Integer pageno, Integer pagesize);

}
